package com.dapeis.domain.ext;

import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Transient;

import com.dapeis.domain.Order;
import com.dapeis.domain.Plan;
import com.dapeis.domain.Requirement;

/**
 * @author 作者 E-mail: hzyuanyong@126.com
 * @version 创建时间：2017年5月15日 下午3:01:00 组装抢单列表数据
 */

public class TaskOrderExt extends Order {
   
    @OneToOne
    @JoinColumn(name = "userId")
    public UserExt userExt;
    
    @OneToOne
    @JoinColumn(name = "linkId")
    public Requirement requirement;
    
    @OneToOne
    @JoinColumn(name = "collocationId")
    public CollocationExt collocationExt;
    

    @Transient
    public Plan plan;
   
    public Requirement getRequirement() {
	return requirement;
    }

    public void setRequirement(Requirement requirement) {
	this.requirement = requirement;
    }

    public UserExt getUserExt() {
        return userExt;
    }

    public void setUserExt(UserExt userExt) {
        this.userExt = userExt;
    }

    public Plan getPlan() {
        return plan;
    }

    public void setPlan(Plan plan) {
        this.plan = plan;
    }

    public CollocationExt getCollocationExt() {
        return collocationExt;
    }

    public void setCollocationExt(CollocationExt collocationExt) {
        this.collocationExt = collocationExt;
    }
    
    
    
}
